package admin

import database "hft/Database"

type Disadvantage struct {
	database.Base
	Name       string    `json:"name,omitempty"`
	TextColor  string    `json:"textColor,omitempty"`
	Cover      string    `json:"cover"`
	RegionLink string    `json:"regionLink,omitempty" gorm:"index"`
	LouPan     []*LouPan `json:"louPan,omitempty" gorm:"many2many:_loupan_disadvantage;foreignKey:ID;references:ID;constraint:OnDelete:CASCADE,OnUpdate:CASCADE"`
}

func (Disadvantage) TableName() string {
	return database.TableNameFormat("disadvantage")
}
